package com.letfox.ad.service;

import java.util.Map;

import com.letfox.ad.model.ADColScre;
import com.letfox.common.model.ResultResponse;


public interface ColScreService {
	
	public ResultResponse getColScreUrl(String request_json) throws Exception;
	public ResultResponse insertAdScreen(ADColScre adColScre) throws Exception;
	public ResultResponse getNewPhysScreen(String request_json) throws Exception;
	public void recordClicks(String screenId, String unitPrice,String url,String adType,String adScreenPlanId) throws Exception;
	public ResultResponse censusScreenAd(String request_json)throws Exception;
	public String getPhysName()throws Exception;
	public String getAllADPlan()throws Exception;
	public ResultResponse getAdRecord(String request_json) throws Exception;
	/**
	 * 根据时间，广告名称（模糊）查询广告播放次数，金额等信息。
	 * @param request_json
	 * @return
	 * @throws Exception
	 */
	public ResultResponse queryPlanList(String request_json)throws Exception;
	/**
	 * 广告信息以及素材信息
	 * @param screenPlanId
	 * @return
	 */
	public ResultResponse queryScreenInfo(String screenPlanId)throws Exception;
	/**
	 * 更新广告信息
	 * @param screenPlanId
	 * @return
	 */
	public ResultResponse updateScreenInfo(String request_json)throws Exception;
	
	/**
	 * 任务调度
	 * @throws Exception
	 */
	public void writeRedisJob() throws Exception;
	/**
	 * 根据screen_id查询广告素材存入redis
	 * @param screen_id
	 * @return
	 */
	public String writeRedisByScreID(String screen_id,Map<String, String> phyMap) throws Exception;
}
